{extend name="layout/create" /}
{block name="form"}
<form id="form">
	<div class="form-group">
		<label class="control-label">{$tables['fields']['menu_id']['name']}</label>
		<select class="form-control" placeholder="" name="menu_id">
			<option value="0">--顶级--</option>
			{foreach $menus as $key=>$vo } 
			<option value="{$vo.id}">{:echolevel($vo.level)}  {$vo.name}</option>
			{/foreach}
		</select>
	</div>
	<div class="form-group">
		<label class="control-label">{$tables['fields']['name']['name']}</label>
		<input class="form-control" type="text" placeholder="" name="name">
	</div>
	<div class="form-group">
		<label class="control-label">{$tables['fields']['url']['name']}</label>
		<input class="form-control" type="text" placeholder="" name="url">
	</div>
	<div class="form-group">
		<label class="control-label">{$tables['fields']['ico']['name']}</label>
		<input class="form-control" type="text" placeholder="" name="ico">
	</div>
	<div class="form-group">
		<label class="control-label">{$tables['fields']['status']['name']}</label>
		<select class="form-control" placeholder="" name="status">
			{foreach $tables['fields']['status']['options'] as $key=>$vo } 
			<option value="{$key}">{$vo}</option>
			{/foreach}
		</select>
	</div>
	<div class="tile-footer">
		<button class="btn btn-primary" type="button" id="submitbutton">
			<i class="fa fa-fw fa-lg fa-check-circle"></i>提交
		</button>&nbsp;&nbsp;&nbsp;
	</div>
</form>
{/block}
